﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MaterPage.Master" AutoEventWireup="true" CodeBehind="OrderManagement.aspx.cs" Inherits="AlltrustDinner.Pages.Admin.OrderManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <script type="text/javascript" src="../../Scripts/Admin/OrderManagement.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div style="text-align: left">
        <span>今日订单</span>
    </div>
    <asp:Repeater ID="rpt_order_summary" runat="server">
        <HeaderTemplate>
            <table id="tbl_order_summary" class="grdView">
                <thead>
                    <tr>

                        <th style="width: 125px;">餐馆</th>
                        <th style="width: 135px;">订单</th>
                        <th style="width: 150px;">数量</th>

                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td><span alltrusttag="user_info" name="lbl_id"><%# Eval("RESTURANT") %></span></td>
                    <td><span alltrusttag="user_info" name="lbl_name"><%# Eval("DINNER") %></span></td>
                    <td><span alltrusttag="user_info" name="lbl_name"><%# Eval("COUNT") %></span></td>

                </tr>
            </tbody>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>

    </asp:Repeater>
    <br />
    <hr />
    <br />

    <div style="text-align: left">
        <span>订单详情</span>
        <br />
        <input id="ipt_datetime" class="datepicker" type="text" runat="server" clientidmode="Static" readonly="readonly"/>
        <asp:ImageButton runat="server" ID="imgBtn_search" ImageUrl="~/Images/search.png"  AlternateText="查询" ImageAlign="AbsMiddle" OnClick="imgBtn_search_Click" />

    </div>
    <asp:Repeater ID="rpt_order_list" runat="server">
        <HeaderTemplate>
            <table id="tbl_order_list" class="grdView">
                <thead>
                    <tr>
                        <th style="width: 115px;">ID</th>
                        <th style="width: 125px;">姓名</th>
                        <th style="width: 125px;">餐馆</th>
                        <th style="width: 135px;">订单</th>
                        <th style="width: 150px;">订单时间</th>
                        <th style="width: 50px;">价格</th>
                        <th style="width: 200px;">备注</th>
                        <th style="width: 75px;">操作</th>
                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td><span alltrusttag="user_info" name="lbl_id"><%# Eval("ID") %></span></td>
                    <td><span alltrusttag="user_info" name="lbl_name"><%# Eval("NAME") %></span></td>
                    <td><span alltrusttag="user_info" name="lbl_name"><%# Eval("RESTURANT") %></span></td>
                    <td><span alltrusttag="user_info" name="lbl_name"><%# Eval("DINNER") %></span></td>
                    <td><span alltrusttag="user_info" name="lbl_name"><%# Eval("TIME") %></span></td>
                    <td><span name="lbl_balance" style="float: left;"><%# Eval("PRICE","{0:N2}") %></span>

                        <td><span alltrusttag="user_info" name="lbl_name"><%# Eval("REMARK") %></span></td>
                        <div class="editShow" style="float: left; display: none;">+<input alltrusttag="user_info" type="text" name="ipt_balance_change" style="width: 40px; height: 12px;" /></div>
                    </td>
                    <td>
                        <%--                        <img class="editHide" src="../../Images/edit.png" style="float: left; margin-left: 2px; margin-right: 3px; width: 20px; height: 20px;" title="编辑" alt="" onclick="editOrder(this);" />
                        <img class="editHide" src="../../Images/delete.png" style="float: left; margin-left: 2px; margin-right: 3px; width: 20px; height: 20px;" title="删除" alt="" onclick="deleteOrder(this);" />--%>

                    </td>
                </tr>
            </tbody>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>

    </asp:Repeater>

</asp:Content>
